<template>
  <el-main class="elmain">
    <el-container class="staff-edit">
      <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
        <el-form-item label="姓名">
          <el-input v-model="formLabelAlign.name"></el-input>
        </el-form-item>
        <el-form-item label="联系方式">
          <el-input v-model="formLabelAlign.region"></el-input>
        </el-form-item>
        <el-form-item label="职务">
          <el-input v-model="formLabelAlign.type"></el-input>
        </el-form-item>
        <el-form-item label="入职时间">
          <el-input v-model="formLabelAlign.type"></el-input>
        </el-form-item>
        <el-form-item label="状态">
          <el-checkbox-group >
            <el-checkbox label="离职"></el-checkbox>
            <el-checkbox label="在职"></el-checkbox>
          </el-checkbox-group>
        </el-form-item>
        <button type="" class="el-buttons">确定</button>
      </el-form>
    </el-container>
  </el-main>
</template>

<script>
  export default {
    name: "staff-edit",
    data () {
      return {
        multipleSelection: [],
        input4: '',
        labelPosition: 'right',
        formLabelAlign: {
          name: '',
          region: '',
          type: ''
        }
      }
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      },
      handleDelete(index, row) {
        console.log(index, row);
      },
      toggleSelection(rows) {
        if (rows) {
          rows.forEach(row => {
            this.$refs.multipleTable.toggleRowSelection(row);
          });
        } else {
          this.$refs.multipleTable.clearSelection();
        }
      },
      handleSelectionChange(val) {
        this.multipleSelection = val;
      }
    }
  }
</script>

<style lang="scss">
  .elmain{
    display:flex;
    flex-direction: column;
    padding-top:0;
    background:blue;
    .manage{
      width: 58px;
      height: 18px;
      display:inline-block;
      text-align: center;
      line-height: 18px;
      background: #ff5650;
      border-radius:2px;
      font-size:12px;
      color:#fff;
    }
    .manages{
      font-size:12px;
      color:#838383;
      width: 58px;
      height: 18px;
      text-align: center;
      line-height: 18px;
    }
    .staff-edit{
      background:palegreen;
      padding:20px 0 0 20px;
      .el-input__inner{
        width:611px;
      }
      .el-checkbox-group{
        justify-content: flex-start;
        display:flex;
      }
      .el-form{
        display:flex;
        justify-content: flex-start;
        flex-direction: column;
        .el-buttons{
          border:0;
          width: 70px;
          height: 28px;
          border-radius:5px;
          background-color: #0ab6ab;
          font-size:12px;
          text-align: center;
          line-height: 28px;
          color:#fff;

        }
      }
    }
    input{
      height:30px!important;
      line-height:30px!important;
    }
  }
</style>
